package com.rd.easy_server.modules.user.controller;

import com.fasterxml.jackson.databind.util.BeanUtil;
import com.rd.common.model.Result;
import com.rd.easy_server.modules.user.service.UserService;
import com.rd.modules.user.model.dto.UserDTO;
import com.rd.modules.user.model.vo.UserVO;
import jakarta.annotation.Resource;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author zyy
 * @Date 2025/2/12 20:39
 * @Version 1.0
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("list")
    public Result<List<UserDTO>> list() {
        List<UserDTO> list = userService.list();
        return Result.success(list);
    }


}
